import { express } from '@/utils/express/express.js'
import isToken from '@/utils/token/token.js'

export const getChat = (data) => {
    return express.get('user/getChat', {
        headers: {
            'Authorization': isToken()
        },
        params: { id: data }
    })
}

export const getChatUserInfo = (data) => {
    return express.get('user/getChatUserInfo', {
        headers: {
            'Authorization': isToken()
        },
        params: { id: data }
    })
}

export const getChatList = () => {
    return express.get('user/getChatList', {
        headers: {
            'Authorization': isToken()
        }
    })
}

export const getChatNum = (data) => {
    return express.get('user/getChatNum', {
        headers: {
            'Authorization': data
        }
    })
}
